@extends('layouts.master')

@section('title')
    Nuevo tipo de partido
@stop

@section('content')

<!-- show form errors -->
{{ HTML::ul($errors->all()) }}

<!-- create match type form -->
<div class="row">
        <div>
          <section class="panel">
            <div class="panel-body">
			{{ Form::open(array('url' => 'matchTypes')) }}
			
				<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
				
				<div class="form-group col-lg-4">
					{{ Form::label('name', 'Nombre') }}
					{{ Form::text('name', Input::old('name'), array('class' => 'form-control')) }}
				</div>
			
				<div class="form-group col-lg-4">
					{{ Form::label('totalPlayers', 'Cantidad total de jugadores') }}
					{{ Form::input('number', 'totalPlayers', null, array('class' => 'form-control')) }}
				</div>
				
				<div class="form-group col-lg-4">
					{{ Form::label('versus', 'Vs.?') }}
					{{ Form::checkbox('versus', '1', null, array('class' => 'form-control')) }}
				</div>
			
				<div class="form-group" style="clear: both;">
					<a class="btn btn-default" href="{{ URL::to('matchTypes') }}">&lt;&lt; Volver</a>
					{{ Form::submit('Guardar', array('class' => 'btn btn-primary')) }}
				</div>
				
			{{ Form::close() }}
			</div>
		</section>
	</div>
</div>
@stop